<template>
  <!-- header -->
  <div></div>
  <!-- footer -->
</template>
<script>
export default {
  data() {
    return {};
  },
  mounted() {//在页面渲染之后执行
   // this.$route.params.id  得到的是 http://localhost:80/12
   // this.$route.query.token (从路由中查询字段) 得到的是 http://localhost:80/?toke=**&name=*
    let token = this.$route.query.token;
    let name = this.$route.query.name;
    let openid = this.$route.query.openid;
    // 调用父vue方法
    window.parent["loginCallback"](name, token, openid);
  },
};
</script>
